PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-05-11 10:19:57.956481+00:00 (UTC)
In US/Central Time, this is 2024-05-11 05:19:57.956481-05:00
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

# Generating a random time series data
dates = pd.date_range(start="2021-01-01", end="2021-12-31", freq='D')
data = np.random.randn(len(dates)).cumsum()

# Creating the plot
plt.figure(figsize=(10, 6))
plt.plot(dates, data, label='Random Time Series', color='blue')
plt.title('Random Time Series Plot')
plt.xlabel('Date')
plt.ylabel('Value')
plt.legend()
plt.grid(True)
plt.xticks(rotation=45)
plt.tight_layout()

# Display the plot
plt.show()
print('We are just generating a random time serie here.')
../_images/cf8388a1a9b3acfe2ffd3f23c315c279e4aa77fc478fe6f364834dcd8ff2de6c.png
We are just generating a random time serie here.
../_images/652fb6e8de6ae200eef88893da4e7c452684ed6e04ddce2d94de7eaa3a1bedbc.png
../_images/2e6fafbfe7f9d67c7f298c9bf68ab5b1e2b2c38d7e53b6792f92256296cccf64.png